package com.qj.yantaishan.service.impl;

import java.util.List;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.beans.factory.annotation.Autowired;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.context.annotation.Primary;
import org.springframework.stereotype.Service;
import com.qj.yantaishan.mapper.AdverMapper;
import com.qj.yantaishan.domain.Adver;
import com.qj.yantaishan.service.IAdverService;
import com.qj.yantaishan.common.core.text.Convert;

/**
 * 【请填写功能名称】Service业务层处理
 * 
 * @author qihe
 * @date 2022-07-22
 */
@Service
@Primary
public class AdverServiceImpl    extends ServiceImpl<AdverMapper, Adver>  implements IAdverService
{
    @Autowired
    private AdverMapper adverMapper;

    /**
     * 查询【请填写功能名称】
     * 
     * @param id 【请填写功能名称】主键
     * @return 【请填写功能名称】
     */
    @Override
    public Adver selectAdverById(Long id)
    {
        return adverMapper.selectAdverById(id);
    }

    /**
     * 查询【请填写功能名称】列表
     * 
     * @param adver 【请填写功能名称】
     * @return 【请填写功能名称】
     */
    @Override
    public List<Adver> selectAdverList(Adver adver)
    {
        return adverMapper.selectAdverList(adver);
    }

    /**
     * 新增【请填写功能名称】
     * 
     * @param adver 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int insertAdver(Adver adver)
    {
        return adverMapper.insertAdver(adver);
    }

    /**
     * 修改【请填写功能名称】
     * 
     * @param adver 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int updateAdver(Adver adver)
    {
        return adverMapper.updateAdver(adver);
    }

    /**
     * 批量删除【请填写功能名称】
     * 
     * @param ids 需要删除的【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteAdverByIds(String ids)
    {
        return adverMapper.deleteAdverByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除【请填写功能名称】信息
     * 
     * @param id 【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteAdverById(Long id)
    {
        return adverMapper.deleteAdverById(id);
    }
}
